﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="SanPhamUpdate.aspx.cs" Inherits="Admin_SanPhamUpdate" Title="Untitled Page" %>
<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">

<h5>Menu</h5>
<ul class ="Actions">
<li><a href ="sanphamlist.aspx">Danh sách sản phẩm</a></li>
<li class="Selected"><a href ="SanPhamAdd.aspx">Thêm mới sản phẩm</a></li>
</ul>
<ul class ="Actions">
<li ><a href ="LoaiSPList.aspx">Danh sách loại sản phẩm</a></li>
<li><a href ="LoaiSPAdd.aspx">Thêm mới loại sản phẩm</a></li>
</ul>
<ul class ="Actions">
<li><a href ="DiaDiemList.aspx">Thông tin địa điểm</a></li>
<li><a href ="DiaDiemAdd.aspx">Thêm mới địa điểm</a></li>
</ul>
<ul class ="Actions">
<li><a href ="DoanhNghiepList.aspx">Danh sách doanh nghiệp</a></li>
<li><a href ="DoanhNghiepAdd.aspx">Thêm mới doanh nghiệp</a></li>
</ul>
<ul class ="Actions">
<li><a href ="HangSanXuatList.aspx">Danh sách hãng sản xuất</a></li>
<li><a href ="HangSanXuatAdd.aspx">Thêm mới hãng sản xuất </a></li>
</ul>
<ul class ="Actions">
<li><a href ="TrangThaiSPList.aspx">Danh sách trạng thái sản phẩm</a></li>
<li><a href ="TrangThaiSPAdd.aspx">Thêm mới trạng thái sản phẩm </a></li>
</ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
<div>
        <div class="title" style="text-align: center">
            <span style="font-weight: bold; color: red; font-style: italic">Cập Nhật Sản Phẩm</span></div>                  
        <div>
          <table width="100%" cellspacing="1" cellpadding="3" border="0" bgcolor="#cccccc"> 
                 <tr>
                    <td style="width:30%">Mã Sản Phẩm</td>
                    <td style="width:69%"><asp:TextBox Enabled="false" ID="txt_masp" runat="server"></asp:TextBox></td>
                </tr> 
                 <tr>
                    <td style="width:30%">Tên Sản Phẩm</td>
                    <td style="width:69%"><asp:TextBox ID="txt_tensp" runat="server"></asp:TextBox></td>
                </tr> 
                <tr>
                    <td style="width:30%">
                        Loại</td>
                    <td style="width:69%">
                        <asp:DropDownList CssClass="DropDownList" ID="ddl_loai" runat="server" Width="168px">
                        </asp:DropDownList></td>
                </tr>  
                 <tr>
                  <td style="width: 30%">
                      Địa điểm</td>
                  <td style="width: 69%">
                      <asp:DropDownList ID="ddl_diadiem" runat="server" Width="168px">
                      </asp:DropDownList></td>
              </tr> 
               <tr>
                  <td style="width: 30%">
                      Hãng SX</td>
                  <td style="width: 69%">
                      <asp:DropDownList CssClass="DropDownList" ID="ddl_hsx" runat="server" Width="168px">
                      </asp:DropDownList></td>
              </tr>
              <tr>
                  <td style="width: 30%">
                      Trạng thái</td>
                  <td style="width: 69%">
                      <asp:DropDownList ID="ddl_trangthai" runat="server" Width="168px">
                      </asp:DropDownList></td>
              </tr>
              <tr>
                    <td style="width:30%">
                        Nhân viên</td>
                    <td style="width:69%">
                        <asp:DropDownList CssClass="DropDownList" ID="ddl_nv" runat="server" Width="168px">
                        </asp:DropDownList>
                    </td>
                </tr>  
                <tr>
                    <td style="width:30%">
                        Doanh Nghiệp</td>
                    <td style="width:69%">
                        <asp:DropDownList CssClass="DropDownList" ID="ddl_dn" runat="server" Width="168px">
                        </asp:DropDownList>
                    </td>
                </tr>           
                 <tr>
                  <td style="width: 30%; height: 19px">
                      Đơn Giá Bán</td>
                  <td style="width: 69%; height: 19px">
                      <asp:TextBox ID="txt_dongiaban" runat="server"></asp:TextBox></td>
                </tr>
                  <tr>
                  <td style="width: 30%; height: 19px">
                      Đơn Giá Thực</td>
                  <td style="width: 69%; height: 19px">
                      <asp:TextBox ID="txt_dgthuc" runat="server"></asp:TextBox></td>
              </tr>   
              <tr>
                  <td style="width: 30%; height: 115px">
                      Điều kiện sử dụng</td>
                  <td style="width: 69%; height: 115px">
                      <asp:TextBox ID="txt_dksd" runat="server" Height="109px" TextMode="MultiLine" Width="415px"></asp:TextBox></td>
              </tr>
               <tr>
                    <td style="width:30%; height: 81px;">Mô tả</td>
                    <td style="width:69%; height: 81px;">
                        &nbsp;<ftb:freetextbox id="txt_mota" runat="server"> </ftb:freetextbox></td>
                </tr> 
                 <tr>
                  <td style="width: 30%; height: 19px">
                      SL SP</td>
                  <td style="width: 69%; height: 19px">
                      <asp:TextBox ID="txt_sl_sp" runat="server"></asp:TextBox></td>
              </tr>  
                   <tr>
                    <td style="width:30%">
                        SL Bán</td>
                    <td style="width:69%">
                        <asp:TextBox ID="txt_slban" runat="server"></asp:TextBox>
                    </td>
                </tr>   
              <tr>
                  <td style="width: 30%; height: 19px">
                      SL Đã Bán</td>
                  <td style="width: 69%; height: 19px">
                      <asp:TextBox ID="txt_sl_daban" runat="server"></asp:TextBox></td>
              </tr> 
              <tr>
                  <td style="width: 30%; height: 19px">
                      Ngày Bắt Đầu Bán</td>
                  <td style="width: 69%; height: 19px">
                      <asp:TextBox ID="txt_ngaybdban" runat="server"></asp:TextBox></td>
              </tr>
              <tr>
                  <td style="width: 30%; height: 19px">
                      Ngày Kết Thúc Bán</td>
                  <td style="width: 69%; height: 19px">
                      <asp:TextBox ID="txt_ngay_kt" runat="server"></asp:TextBox></td>
              </tr>
              <tr>
                  <td style="width: 30%; height: 19px">
                      Ngày Cập Nhật</td>
                  <td style="width: 69%; height: 19px">
                      <asp:TextBox ID="txt_ngaycapnhat" runat="server"></asp:TextBox></td>
              </tr>
                <tr>
                  <td style="width: 30%; height: 19px">
                      Tỷ lệ hoa hồng</td>
                  <td style="width: 69%; height: 19px">
                      <asp:TextBox ID="txt_tlhh" runat="server"></asp:TextBox></td>
              </tr>
                   <tr>
                    <td style="width:30%">Hình minh họa</td>
                    <td style="width:69%"><div class="addnewrow" style="display:table-cell; width:23%;float:right; height: 14px;">
                     
                <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click"  >Xóa</asp:LinkButton>
                    
            </div> 
                        &nbsp;
                        <br />
                        <asp:Repeater ID="Repeater2" runat="server" OnItemDataBound="Repeater2_ItemDataBound">
                            <HeaderTemplate>
                                <table bgcolor="#cccccc" border="0" cellpadding="3" cellspacing="1" width="100%">
                              
                                    <thead>
                                        <tr class="listtableheader">
                                            <th>
                                                Mã hình</th>
                                            <th>
                                                Hình ảnh</th>
                                            <th>
                                                <input id="cb_All" onclick="CheckAll(1);" type="checkbox" />
                                                <a href="javascript:CheckAll(2)">Chọn hết</a>
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    </tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <asp:Literal ID="lit_id_hinh" runat="server"></asp:Literal></td>
                                    
                                    <td>
                                        <asp:Image ID="img_HinhAnh" runat="server" /></td>
                                        <asp:HiddenField ID="hf_tenhinh" runat="server" />
                                   
                                    <td>
                                        <asp:CheckBox ID="cb_Xoa" runat="server" />
                                        <asp:HiddenField ID="hf_id" runat="server" />
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </tbody> </table>
                            </FooterTemplate>
                        </asp:Repeater>
                        <cc1:pagerv2_8 id="Pager" runat="server" oncommand="Pager_Command"></cc1:pagerv2_8>
                    </td>
                </tr>   
                  <tr>
                    <td style="width:30%"></td>
                    <td style="width:69%">
                        
                        <asp:FileUpload ID="fu_up_hinh" runat="server" class="multi"/>
                    </td>
                </tr> 
   
                <tr>
                    <td colspan="2">
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp;
                        <asp:Button ID="bt_update" runat="server" OnClick="bt_update_Click" Text="Cập nhật sản phẩm" /></td>
                </tr>            
            </table>
        </div>
 </div>
 </div>
</asp:Content>

